//package com.example.jpa.demo_jpa.quartz;
//
//import org.springframework.beans.factory.annotation.Configurable;
//import org.springframework.scheduling.annotation.EnableScheduling;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//
//import java.util.logging.LogManager;
//import java.util.logging.Logger;
//
//@Component
//@Configurable
//@EnableScheduling
//public class SendMailQuartz {
//
//    /**
//     * 定时器任务  每两秒执行一次
//     */
////    @Scheduled(cron = "*/2 * * * * * ")
//    public void reportCurrentByCron(){
//        System.out.println("定时器运行了！！！");
//    }
//}
